package model;

import java.io.Serializable;
import java.util.Arrays;

public class People implements Serializable {
private String name;
private Integer age;
private String password;
private String address;
private String[] hobby;
private String sex;

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", password='" + password + '\'' +
                ", address='" + address + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                ", sex='" + sex + '\'' +
                '}';
    }

    public People() {
    }

    public People(String name, Integer age, String password, String address, String[] hobby, String sex) {
        this.name = name;
        this.age = age;
        this.password = password;
        this.address = address;
        this.hobby = hobby;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
